package cn.lanqiao.service;

import java.util.List;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import cn.lanqiao.entity.Exam_manage;
import cn.lanqiao.entity.Near;
import cn.lanqiao.entity.Pages;
/**
 * 填空模块
 * @author yejun
 */
public interface Exam_manageService {

	//展示所有数据
	public List<Exam_manage> getAllExam();
	//分页
	public Pages<Exam_manage> ExamPage( int indexPage , int pageSize , String searchkey);
	//查看详情
	public Exam_manage getExamByCode(Integer examCode);
	//删除
	public int deleteExam(Integer examCode );
	//修改
	public int updateExam(Exam_manage exam);
	//添加
	public int insertExam(Exam_manage exam);
	//近期考试
	public List<Near> nearAllExam( int day );
	
	List<Exam_manage> findAll();
    IPage<Exam_manage> findAll(Page<Exam_manage> page);

    Exam_manage findBySource(String source);

    Exam_manage findOnlyPaperId();
	
}
